package com.sihan.swvp.service.wg;


import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.sihan.swvp.dao.wg.WgVideoDao;
import com.sihan.swvp.entity.wg.WgVideo;
@Service
public class WgVideoService{

	@Autowired
	private WgVideoDao wgVideoDao;
	
	public Page<Map<String, Object>> getWgVideoList(Map<String, Object> params,Integer page,Integer limit) {
		if(page !=null && limit !=null){
			PageHelper.startPage(page, limit);
		}
		return wgVideoDao.getWgVideoList(params);
	}
	
	public List<Map<String, Object>> getWgBj(Map<String, Object> params) {
		return wgVideoDao.getWgBj(params);
	}

	public Map<String, Object> getWgBjById(WgVideo bean) {
		return wgVideoDao.getWgBjById(bean);
	}
	
	public void addWgBj(WgVideo bean) {
		wgVideoDao.addWgBj(bean);
	}
	
	public int deleteWgBjBatch(Map<String, Object> params) {
		return wgVideoDao.deleteWgBjBatch(params);
	}
	

	public Map<?, ?> getWgImg(WgVideo bean) {
		return wgVideoDao.getWgImg(bean);
	}
	
	public Map<String, Object> getWgVideoValidate(WgVideo bean){
		return wgVideoDao.getWgVideoValidate(bean);
	}
	
	public int deleteWgBjById(Map<String, Object> params) {
		return wgVideoDao.deleteWgBjById(params);
	}

}
